package zjut.cocouml.part;

import java.beans.PropertyChangeEvent;
import java.beans.PropertyChangeListener;

import org.eclipse.draw2d.IFigure;
import org.eclipse.gef.editparts.AbstractGraphicalEditPart;

import zjut.cocouml.model.BaseElement;

public abstract class AppAbstractEditPart extends AbstractGraphicalEditPart
		implements PropertyChangeListener {

	public void activate() {
		super.activate();
		((BaseElement)getModel()).addPropertyChangeListener(this);
	}
	public void deactivate() {
		super.deactivate();
		((BaseElement)getModel()).removePropertyChangeListener(this);
	}
	
}
